package hypeerweb;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class AddConnections extends ModifyConnections {

	@Override
	//needs to return an iterator for a collection of NodeInterfaces from the various parts of connections of node
	public Iterator<NodeInterface> iterator(NodeInterface node) {
		Connections connections= node.getConnections();
		
		List<NodeInterface> list = new LinkedList();
		
		
		//connections will have to 
		list.addAll(connections.getNeighbors());
		list.addAll(connections.getUpPointers());
		list.add(connections.getFold());
		
		return null;
	}

	@Override
	public void changeConnection(NodeInterface toBeChanged, Node node) {
		toBeChanged.AddMe(node);
	}

}
